package io.renren.modules.newBackground.shanDongCmcc.controller;


import io.renren.modules.newBackground.shanDongCmcc.dto.ShanDongCmccBackGroundReq;
import io.renren.modules.newBackground.shanDongCmcc.dto.ShanDongCmccComplainReq;
import io.renren.modules.newBackground.shanDongCmcc.service.ShanDongCmccBackGroundService;
import io.swagger.annotations.Api;
import lombok.AllArgsConstructor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("background/shandongCmcc")
@Api(tags="山东移动后台接口")
@AllArgsConstructor
public class ShanDongCmccBackGroundController {
    private static final Logger logger = LoggerFactory.getLogger(ShanDongCmccBackGroundController.class);

    private final ShanDongCmccBackGroundService shanDongCmccBackGroundService;

    @PostMapping("/queryComplain")
    public void queryComplain(@RequestBody ShanDongCmccBackGroundReq backGroundComplainReq){
        shanDongCmccBackGroundService.queryComplain(backGroundComplainReq);
    }

    @PostMapping("/queryUnsubscribe")
    public void queryUnsubscribe(@RequestBody ShanDongCmccBackGroundReq backGroundComplainReq){
        shanDongCmccBackGroundService.queryUnsubscribe(backGroundComplainReq);
    }
}
